const savaPlugin = store => {
  store.subscribe((mutations, state) => {
    localStorage.setItem('cart', JSON.stringify(state.cart.list))
    localStorage.setItem('order', JSON.stringify(state.cart.order))
    localStorage.setItem('addressData', JSON.stringify(state.address.addressInfo))
  })
}
export default savaPlugin
